{include file="style.tpl" }
{assign var="nb" value="0" scope="global"}
{assign var="nbOwner" value="0" scope="global"}
{assign var="nbAdviser" value="0" scope="global"}

{foreach $project.allTopics as $topic}
	{$nb=$nb+1}
	{if $topic.owner_validation eq 'y' or $topic.owner_validation eq 'i'}
		{$nbOwner=$nbOwner + 1}
	{/if}
	{if $topic.adviser_validation eq 'y' or $topic.adviser_validation eq 'i'}
		{$nbAdviser=$nbAdviser + 1}
	{/if}
{/foreach}
<page style="font-size: 10pt; font-family: arial;" backleft="10mm" backright="10mm" backtop="10mm" backbottom="10mm"> 
	{include file="page_footer.tpl"}
	{include file="header.tpl" title="Bilan du projet au {$smarty.now|date_format:'%d %B %Y'}"}
	
	<table style="width:190mm;" align="center" cellspacing="center" cellpadding="center">
		<tr>
			<td style="width:95mm;">Nombre de rendez-vous: {count($project->meetings)}</td>
			<td style="width:95mm;">Durée de l'accompagnement: {round($project->nbDays/7)} semaines</td>
		</tr>
	</table>
	<br />
	{if isset($FORM.value) gt 0 and trim($FORM.value) != ''}
		<h2>Formations réalisées : </h2><br />
		<div class="detail">{$FORM.value}</div>
		<br /><br />
	{/if}
	<table style="width:190mm;" align="center" cellspacing="center" cellpadding="center">
		<tr>
			<td style="width:84mm;"  class="done">
				<h2>Description du projet : </h2><div class="detail">
				{if isset($project.description) gt 0 and trim($project.description) != ''}
					{$project.description}
					<br /><br />
				{/if}</div> 
			</td>
			<td style="width:2mm;">&nbsp;</td>
			<td style="width:84mm;" class="done">
				Nombre total d'items &agrave; valider : {$nb}<br /><br />
				Nombre d'items validés par le porteur : {$nbOwner}<br /><br />
				Nombre d'items validés par le conseiller : {$nbAdviser} 
			</td>
		</tr>
	</table>
	<br />
	<div class="done">
	<h2>Situation à 3 mois</h2><br/>
	<div class="detail">
	{foreach item=suite key=idx from=$SITUATION.values}
		<div class="suite">
		{if $SITUATION.value eq $idx}
			<img src="checked.png" width="16" height="16" border="0" />
		{else}
			<img src="unchecked.png" width="16" height="16" border="0" />
		{/if} {$suite}<br />
		</div>
	{/foreach}</div>
	</div>
	{if isset($CMT.value) gt 0 and trim($CMT.value) != ''}
		<div>{$CMT.value}</div>
		<br /><br />
	{/if}
</page>
